package Class_Object.接口.demo1;
//TODO static 和default修饰的方法调用
public interface Itest {
    void testA();
    public static void testStatic() {
        System.out.println("testStatic");
    }
    default public void defaultMethod() {
        System.out.println("defaultMethod");
    }
}
class TestDemo implements Itest {
    @Override
    public void testA() {
        System.out.println("重写testA()");
    }

    @Override
    public void defaultMethod() {
        System.out.println("重写的defaultMethod方法");
    }
}
class Test{
    public static void main(String[] args) {
        Itest.testStatic();
        TestDemo testDemo =new TestDemo();
        testDemo.defaultMethod();
    }
}
